//
//  ViewAllOrdersViewController.m
//  NordsonTesco
//
//  Created by mac on 16/7/1.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ViewAllOrdersViewController.h"

@interface ViewAllOrdersViewController ()

@end

@implementation ViewAllOrdersViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"查看订单";
    
    UIButton *ordersBackButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [ordersBackButton addTarget:self action:@selector(ordersBackButtonAction) forControlEvents:UIControlEventTouchUpInside];
    CGSize searchBackButtonSize = CGSizeMake(15, 30);
    ordersBackButton.frame = CGRectMake(ordersBackButton.frame.origin.x, ordersBackButton.frame.origin.y, searchBackButtonSize.width, searchBackButtonSize.height);
    ordersBackButton.titleLabel.font = [UIFont boldSystemFontOfSize:12];
    [ordersBackButton setImage:[UIImage imageNamed:@"arrow---left"] forState:UIControlStateNormal];
    UIBarButtonItem *leftButtonItem = [[UIBarButtonItem alloc] initWithCustomView:ordersBackButton];
    self.navigationItem.leftBarButtonItem = leftButtonItem;
    // Do any additional setup after loading the view.
}
//返回
- (void)ordersBackButtonAction{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
